﻿using System.Configuration;
using AndrewSiemer.KnowledgeExchange.Domain;

namespace AndrewSiemer.KnowledgeExchange.DataAccess
{
    public class Connection : IConnection
    {
        public KEDataContext GetContext()
        {
            string connstring = ConfigurationManager.ConnectionStrings["KnowledgeExchangeConnectionString"].ToString();
            KEDataContext result = new KEDataContext(connstring);
            return result;
        }
    }
}